<template>
  <div>
    <h1>我是一级路由 登陆成功后</h1>
    <h2>{{ userStore.username }}</h2>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import useUserStore from '@/store/modules/user'
let userStore = useUserStore()
onMounted(() => {
  userStore.userInfo()
})
</script>

<style scoped></style>
